package com.xy.blog.article.api;

import com.xy.blog.article.api.model.ArticleCategoryQuery;
import com.xy.blog.core.exception.BaseException;
import com.xy.blog.core.springmvc.result.page.PageReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author zanhonglei
 * @version V1.0
 * @Description: 思维导图
 * @date 2020/7/10
 */
@FeignClient(name = "xy-blog-article-center",contextId = "ArticleMindMapApi")
public interface ArticleMindMapService {
    String BASE_PATH = "/v1/article-mindmap";

    
    @PostMapping(BASE_PATH + "/pages")
    Object pages(@RequestBody PageReq<ArticleCategoryQuery> req) throws BaseException;

    
    @GetMapping(BASE_PATH)
    Object getById(@RequestParam Long id) throws BaseException;
//
//
//    @PostMapping(BASE_PATH)
//    Object save(@Valid @RequestBody ArticleCategoryReq req) throws BaseException;
//
//
//    @PutMapping(BASE_PATH)
//    Object update(@Valid @RequestBody ArticleCategoryReq req) throws BaseException;

    
    @DeleteMapping(BASE_PATH)
    Object deleteById(@RequestParam Long id) throws BaseException;

    

}
